package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 采购订单与采购条款关联对象 erp_order_purchase_terms
 *
 * @author cxl
 * @date 2024-06-23
 */
@TableName ("erp_order_purchase_terms")
@ApiModel (value = "采购订单/销售订单与采购条款关联", description = "采购订单/销售订单与采购条款关联")
@Data
public class OrderPurchaseTermsEntity{

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 采购订单id */
        @ApiModelProperty ("采购订单id")
        @TableField ("order_id")
        @Excel (name = "采购订单id")
        private String orderId;

        /** 采购条款id */
        @ApiModelProperty ("采购条款id")
        @TableField ("purchase_terms_id")
        @Excel (name = "采购条款id")
        private String purchaseTermsId;

        /** 描述 */
        @ApiModelProperty ("描述")
        @TableField ("desc_info")
        @Excel (name = "描述")
        private String descInfo;

        /** 录入人 */
        @ApiModelProperty ("录入人")
        @TableField ("user_id")
        @Excel (name = "录入人")
        private String userId;

        @ApiModelProperty ("关联类型0采购订单，1销售订单")
        @TableField ("type")
        @Excel (name = "关联类型0采购订单，1销售订单")
        private String type;

         /** 创建时间 */
        @ApiModelProperty ("创建时间")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        @TableField ("create_time")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;

        /** 逻辑删除 */
        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;

        @ApiModelProperty ("条款详情信息")
        @TableField(exist = false)
        private KingPurchaseTermsEntity purchaseTerms;

}
